{include file="public/head"}
<title>Home</title>
<link rel="stylesheet" href="__STATIC__/home/css/woocommerce/woocommerce-layout.css" />
<link rel="stylesheet" href="__STATIC__/home/css/woocommerce/woocommerce-smallscreen.css" />
</head>
<body class="page woocommerce-account woocommerce-page">
    <div class="body-wrapper theme-clearfix">
    {include file="public/nav"}
        <div class="listings-title">
            <div class="container">
                <div class="wrap-title">
                    <h1>个人中心</h1>
                    <div class="bread">
                        <div class="breadcrumbs theme-clearfix">
                            <div class="container">
                                <ul class="breadcrumb">
                                    <li>
                                        <a href="/">首页</a>
                                        <span class="go-page"></span>
                                    </li>

                                    <li class="active">
                                        <span>我的账号</span>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="row">
                <div id="contents" role="main" class="main-page  col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="post-6 page type-page status-publish hentry">
                        <div class="entry">
                            <div class="entry-content">
                                <header>
                                    <h2 class="entry-title">个人中心</h2>
                                </header>

                                <div class="entry-content">
                                    <div class="woocommerce">
                                        <nav class="woocommerce-MyAccount-navigation">
                                            <ul>
                                                <li class="is-active">
                                                    <a href="{:url('account/index')}">账号首页</a>
                                                </li>

                                                <li >
                                                    <a href="{:url('account/edit')}">修改资料</a>
                                                </li>

                                                <li>
                                                    <a href="{:url('account/orders')}">我的订单</a>
                                                </li>

                                                <li>
                                                    <a href="{:url('account/wikis')}">我的问答</a>
                                                </li>

                                                <li>
                                                    <a href="{:url('bis/index')}">入驻中心</a>
                                                </li>
                                            </ul>
                                        </nav>

                                        <div class="woocommerce-MyAccount-content">
                                            <table class="shop_table shop_table_responsive my_account_orders account-orders-table">
                                                <thead>
                                                <tr>
                                                    <th><span class="nobr">用户名</span></th>
                                                    <th><span class="nobr">邮箱地址</span></th>
                                                    <th><span class="nobr">真实姓名</span></th>
                                                    <th><span class="nobr">性别</span></th>
                                                    <th><span class="nobr">用户类型</span></th>
                                                    <th><span class="nobr">是否入驻</span></th>
                                                    <th><span class="nobr">&nbsp;</span></th>
                                                </tr>
                                                </thead>

                                                <tbody>
                                                <tr class="order">
                                                    <td data-title="用户名">
                                                        {$user.username}
                                                    </td>
                                                    <td data-title="邮箱地址">
                                                        {$user.user_email}
                                                    </td>
                                                    <td data-title="真实姓名">
                                                        {$user.realname ? $user.realname : '未填写'}
                                                    </td>
                                                    <td data-title="性别">
                                                        {$user.usersex | getSex}
                                                    </td>
                                                    <td data-title="用户类型">
                                                        {$user.usertype | getUserType}
                                                    </td>
                                                    <td data-title="是否入驻">
                                                        {$user.is_seller ? '未入驻' : '已入驻'}
                                                    </td>

                                                    <td class="order-actions" data-title="&nbsp;">
                                                        <a href="{:url('account/edit')}" class="button view">修改资料</a>
                                                    </td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {include file="public/footer"}